class Solution:
    def isPalindrome(self, s):
        """
        :type s: str
        :rtype: bool
        """
        temp = ''.join([i for i in filter(lambda x:str.isalpha(x) or str.isdigit(x), s)]).lower()
        return temp[::-1] == temp